/**
 * 
 */
package com.catsic.pub.ftp.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.catsic.base.BaseService;
import com.catsic.pub.condition.FtpCondition;
import com.catsic.pub.entity.Ftp;

/**
 * @author sgl
 * 法规 service接口
 */
public interface FtpService extends BaseService<Ftp,String>{
	
	/**
	 * add:添加Ftp
	 * @author sgl
	 * @param  ftp
	 * @return Ftp ftp
	 */
	public Ftp add(Ftp ftp);
	/**
	
	/**
	 * update:更新ftp
	 * @author sgl
	 * @param ftp
	 * @return
	 */
	public void update(Ftp ftp);
	
	/**
	 * delete:删除Ftp
	 * @author sgl
	 * @return
	 */
	public void delete(String id);
	
	public Ftp findById(String id);
	
	/**
	 * test:测试Ftp
	 * @author sgl
	 * @return
	 */
	public void test(String id);
	
	public Page<Ftp> findAll(FtpCondition condition, Pageable pageable);
	
	/**
	 * findByOrganCode:通过机构编码获取ftp
	 * @author zw
	 * @param organCode
	 * @return
	 */
	public Ftp findByOrganCode(String organCode);
}
